//
//  RSDBResultSet.m
//  Library
//
//  Created by Johnnie Walker on 07/10/2008.
//  Copyright 2008 Random Sequence. All rights reserved.
//

#import "RSDBResultSet.h"

@implementation RSDBResultSet

- (int)columnCount {
	return sqlite3_column_count((sqlite3_stmt *)[[self statement] statement]);
}

- (NSNumber *)numberForColumn:(NSString *)columnName
{
	return [NSNumber numberWithDouble:[self doubleForColumn:columnName]];
}

- (NSNumber *)numberForColumnIndex:(int)columnIdx
{
	return [NSNumber numberWithDouble:[self doubleForColumnIndex:columnIdx]];
}

@end
